import { createRouter, createWebHistory } from 'vue-router'
import routes from 'virtual:generated-pages'
console.log(routes)

routes.push({
  path: '/',
  redirect: '/my',
})

//导入生成的路由数据
const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router
